<template>
  <div class="itemBodys">
    <echarts1 :list="list"></echarts1>
  </div>
</template>

<script>

import echarts1 from "./echarts/index.vue";
import {deviceStatus} from "@/api/api/LargeScreenData.js";

export default {
  name: "item3",
  data() {
    return {
      list: []
    }
  },
  components: {echarts1},
  mounted() {
    this.getData()
  },
  methods: {
    async getData() {
      try {
        const res = await deviceStatus();
        this.list = res.data
      } catch (err) {
        console.error(err);
      }
    },
  },
}
</script>

<style lang="scss" scoped>
.itemBodys {
  position: relative;
  width: calc(100% - 20px);
  margin: 0 auto;
  height: calc(100% - 0px);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: nowrap;
  flex-direction: column;
  align-content: flex-start;
}
</style>
